<?php
use yii\helpers\Html;
use yii\captcha\Captcha;


?>
<div id="login_box">
    <h1>聊天注册</h1>
    <?= Html::beginForm('', 'post', ['id' => 'form']) ?>
    <ul>
        <li class="text">用户名：
            <?= Html::activeInput('text', $model, 'user', ['class' => 'input', 'id' => 'user']) ?>
        </li>
        <li class="tip">
            <?= Html::error($model, 'user', ['class' => 'error']) ?>
        </li>
        <li>密　码：
            <?= Html::activeInput('password', $model, 'password', ['class' => 'input', 'id' => 'password'])?>
        </li>
        <li class="tip">
            <?= Html::error($model, 'password', ['class' => 'error']) ?>
        </li>
    </ul>
    <div>
        <?= Html::submitButton('注册', ['id' => 'login_submit'])?>
    </div>
    <?= Html::endForm(); ?>
</div>